Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'data()' function to store details about message type in 'data' column of 'message' table #290

Merged
merged 5 commits into from
Dec 22, 2021

Conversation

ali4zimi
Copy link
Contributor

Sometimes you might want to add details about a message. For example, when the message type is an attachment, and you want to add details such as the attachment's filename, and attachment's file URL, you can call the 'data()' function and pass your data as JSON. A column 'data' in the message table was also created to store this data.

@ali4zimi
Copy link
Contributor Author

Dear @musonza, the old 'forked repository' has been deleted accidentally, and I couldn't push to the old PR anymore. Therefore, I re-forked your project and committed my changes please review them and also test them for errors. However, I have tested it in my application which works perfectly. Thanks to Max(@DH1) which mentioned it to me about it.

src/Models/Message.php Outdated Show resolved Hide resolved
src/Models/Message.php Outdated Show resolved Hide resolved
@musonza musonza merged commit 14fcfa6 into musonza:master Dec 22, 2021
@ali4zimi
Copy link
Contributor Author

ali4zimi commented Jul 9, 2023

This closes #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants